package com.bbkb.quartz.service;

import com.bbkb.common.base.exception.BaseCheckException;
import com.bbkb.quartz.dto.SysJobDTO;
import com.bbkb.quartz.vo.page.PageResult;
import org.quartz.SchedulerException;

/**
 * @author nobi
 */
public interface ISysJobService {


    void addSysJob(SysJobDTO sysJobDTO) throws BaseCheckException;

    void updateSysJob(SysJobDTO sysJobDTO) throws BaseCheckException;

    SysJobDTO getSysJob(Long jobId) throws BaseCheckException;

    PageResult<SysJobDTO> queryPage(SysJobDTO jobDTO)throws BaseCheckException;

    void run(Long id) throws SchedulerException;

    void deleteByIds(Long[] ids) throws BaseCheckException, SchedulerException;

}
